package com.jinke.api.modules.app.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonValue;
import lombok.Getter;

@Getter
public enum ReplyEvent {

    EVENT_CREATE(100, "创建"),
    EVENT_CLOSE(101, "关闭"),
    EVENT_REOPEN(102, "重新打开"),
    MESSAGE(103, "普通消息"),
    IMAGE(104, "图片消息"),
    ;

    @EnumValue
    private final int value;
    private final String desc;

    ReplyEvent(final int value, final String desc) {
        this.value = value;
        this.desc = desc;
    }

    @JsonValue
    public int getValue() {
        return this.value;
    }
}